package com.echat.business.home.model;

/**
 * @author chentl
 * @version V1.0
 * @Project OauthUser
 * @Title OauthUser.java
 * @Description 访问Oauth的 用户构造
 * @Package com.echat.business.home.model
 * @date 2019/8/1 13:51
 * @Copyright: 上海顺益信息科技有限公司 All rights reserved.
 */
public class OauthUser {

    private Integer userId;

    private String username;

    private String password;

    private String scope;

    private String grant_type;

    private String access_token;

    private String refresh_token;

    private String token_type;

    private Integer expires_in;

    public OauthUser() {
    }

    public OauthUser(Integer userId, String scope, String access_token, String refresh_token, String token_type, Integer expires_in) {
        this.userId = userId;
        this.scope = scope;
        this.access_token = access_token;
        this.refresh_token = refresh_token;
        this.token_type = token_type;
        this.expires_in = expires_in;
    }


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getScope() {
        return scope;
    }

    public void setScope(String scope) {
        this.scope = scope;
    }

    public String getGrant_type() {
        return grant_type;
    }

    public void setGrant_type(String grant_type) {
        this.grant_type = grant_type;
    }

    public String getAccess_token() {
        return access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getRefresh_token() {
        return refresh_token;
    }

    public void setRefresh_token(String refresh_token) {
        this.refresh_token = refresh_token;
    }

    public String getToken_type() {
        return token_type;
    }

    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    public Integer getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Integer expires_in) {
        this.expires_in = expires_in;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String
    toString() {
        return "OauthUser{" +
                "userId='" + userId + '\'' +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", scope='" + scope + '\'' +
                ", grant_type='" + grant_type + '\'' +
                ", access_token='" + access_token + '\'' +
                ", refresh_token='" + refresh_token + '\'' +
                ", token_type='" + token_type + '\'' +
                ", expires_in=" + expires_in +
                '}';
    }
}
